package com.foreknow.service;

import com.foreknow.model.User;

import java.sql.SQLException;

public interface UserService {
    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    User isValidata(String username,String password) throws SQLException;

    /**
     * 注册
     * @param user
     * @return
     */
    boolean save(User user) throws SQLException;
}
